package homework35;

public class GeneralManager extends LeaveApproval{
    public GeneralManager(String name){
        super(name);
    }
    @Override
    public void hardLeave(Leave left) {
        if (left.getLeaveDays() >= 10 && left.getLeaveDays() < 30){
            System.out.println( name  + "批准员工"
                    + left.getLeavePerson() + "休息" + left.getLeaveDays() + "天");
        }else {
            System.out.println("请假时间过长，拒绝...");
        }
    }
}
